package com.atguigu.gmall.search.vo;

import com.atguigu.gmall.search.entity.Goods;
import lombok.Data;

import java.util.List;

/**
 * @author tangsy
 * @Description TODO
 * @date 2022/12/12 18:50
 * @Version 1.0
 */
@Data
public class SearchRespVo {

    //1、检索参数
    private SearchParamVo searchParam;

    //2、品牌面包屑
    private String trademarkParam;

    //3、属性面包屑
    private List<Props> propsParamList;

    //4、品牌列表
    private List<Trademark> trademarkList;

    //5、属性列表
    private List<Attrs>  attrsList;

    //6、url参数
    private String urlParam;

    //7、排序
    private OrderMap orderMap;

    //8、商品集合
    private List<Goods> goodsList;

    //9、页码
    private Integer pageNo;

    //10、总页码
    private Long totalPages;

    @Data
    public static class Props {
        private String attrName;
        private String attrValue;
        private Long attrId;
    }

    @Data
    public static class Trademark{
        private Long tmId;
        private String tmName;
        private String tmLogoUrl;
    }

    @Data
    public static class Attrs{
        private String attrName;
        private List<String> attrValueList;
        private Long attrId;
    }

    @Data
    public static class OrderMap {
        private String type;
        private String sort;
    }

}
